package com.ziqikeji.listener;

/**
 * 客户端
 * Created by FlyFive on 2018/5/23.
 */
public class Client {
    public static void main(String[] args) {
        Button button1 = new Button("红色按钮");
        button1.click(new ClickListener() {
            @Override
            public void handle(Event e) {
                System.out.println(e);
                System.out.println(e.trigger + "自定义事件代码");
            }
        });
    }
}
